package day03;

public class IfElseIfDemo {
    public static void main(String[] args) {
        double score = 95.0;
        if (100>=score && 0<=score){
            if (score>90){
                System.out.println("优秀-A");
            }else if (score>80){
                System.out.println("良好-B");
            }else if (score>60){
                System.out.println("中等-C");
            }else{
                System.out.println("不及格-D");
            }
        }else {
            System.out.println("成绩不合法...");
        }
    }
}
